<?php

$self = array(
	'name' => 'CEmails',

	'type' => 'collection',

	'fields' => array(
    array( 'name' => 'oid'      , 'type' => 'integer' , )                 ,     // email
    array( 'name' => 'email'    , 'type' => 'text'    , )                 ,     // address
    array( 'name' => 'user_oid' , 'type' => 'integer' , 'default' => NULL , ) , // owner , if not NULL => approved
	),

	'indexes' => array(
		array('oid'),
	),

	'primary_key' => array('oid'),

	'db' => array('name' => 'emails' ),

	'implement' => 'collections/collection.php#collection',
);
